package com.xiaoxin.experience.service.hls.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author xiaoxin
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "hls.prop")
@Component
public class HlsProperties {

    private String saveDir;

    private int retryTimes = 50;

    private int threadCount = 100;

    private boolean unlessRetry = true;

    /**
     * hls下载方式
     * 0,默认方式
     * 1,通用方式
     */
    private int downloadMethod = 0;
}
